package pers.feng1240.blog.entities;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/*
 * 博客实体类
 */
public class Blog {

	private int id;
	private String blogTitle;	//标题
	private String blogContent; //内容
	private String blogTime;		//时间
	private String blogPicture;	//图片
	private int blogTimes;		//浏览次数
	private int blogTop;		//置顶  默认0不置顶  1置顶
	private int blogLike;		//点赞数
	private int blogState;		//状态  默认0   1冻结
	
	private Theme theme;	//博客-主题
	
	//private Tag[] tags; //博客-关键字（多）
	private List<Tag> tagList;
	
	public List<Tag> getTagList() {
		return tagList;
	}
	public void setTagList(List<Tag> tagList) {
		this.tagList = tagList;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getBlogTitle() {
		return blogTitle;
	}
	public void setBlogTitle(String blogTitle) {
		this.blogTitle = blogTitle;
	}
	public String getBlogContent() {
		return blogContent;
	}
	public void setBlogContent(String blogContent) {
		this.blogContent = blogContent;
	}
	public String getBlogTime() {
		return blogTime;
	}
	public void setBlogTime(String blogTime) {
		this.blogTime = blogTime;
	}
	public String getBlogPicture() {
		return blogPicture;
	}
	public void setBlogPicture(String blogPicture) {
		this.blogPicture = blogPicture;
	}
	public int getBlogTimes() {
		return blogTimes;
	}
	public void setBlogTimes(int blogTimes) {
		this.blogTimes = blogTimes;
	}
	
	public Theme getTheme() {
		return theme;
	}
	public void setTheme(Theme theme) {
		this.theme = theme;
	}
	public int getBlogTop() {
		return blogTop;
	}
	public void setBlogTop(int blogTop) {
		this.blogTop = blogTop;
	}
	public int getBlogLike() {
		return blogLike;
	}
	public void setBlogLike(int blogLike) {
		this.blogLike = blogLike;
	}
	public int getBlogState() {
		return blogState;
	}
	public void setBlogState(int blogState) {
		this.blogState = blogState;
	}
	@Override
	public String toString() {
		return "Blog [id=" + id + ", blogTitle=" + blogTitle + ", blogContent=" + blogContent + ", blogTime=" + blogTime
				+ ", blogPicture=" + blogPicture + ", blogTimes=" + blogTimes + ", blogTop=" + blogTop + ", blogLike="
				+ blogLike + ", blogState=" + blogState + ", theme=" + theme + ", tagList=" + tagList + "]";
	}
	
	
}
